home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!ganterth
- From: ganterth@mathematik.tu-muenchen.de (Thomas Ganter)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Need little C Help! (How to make caracters apear on the same spot again and again?)
- Date: 27 Feb 1996 11:10:43 GMT
- Organization: Math. Institut der TU Muenchen
- Distribution: world
- Message-ID: <1996Feb27.121043@mathematik.tu-muenchen.de>
- References: <4gjudo$i95@news.xs4all.nl> <1996Feb23.123038@mathematik.tu-muenchen.de> <4gnl18$rg6@news.iastate.edu>
- NNTP-Posting-Host: sunbulirsch5.mathematik.tu-muenchen.de
- X-newsreader: xrn 7.00
-
- In article <4gnl18$rg6@news.iastate.edu>, pholland@iastate.edu (Paul J Hollander) writes:
- |> In article <1996Feb23.123038@mathematik.tu-muenchen.de>,
- |> Thomas Ganter <ganterth@mathematik.tu-muenchen.de> wrote:
- |> >In article <4gjudo$i95@news.xs4all.nl>, vasquez@xs4all.nl (Joel Wijngaarde) writes:
- |> >|> Hello,
- |> >|>
- |> >|> Can somebody tel me how i can make a counter in C wich counts at the same
- |> >|> screen position. I'm mean something like the in the program 'Lha'. This
- |> >|> program counts the bytes, that are (un)packed. The number of bytes
- |> >|> increases on the same spot; NOT like this:
- |> >|> 1 2 3 4 5 6 7 8 9 10 11 12 etc....
- |> >
- |> >Try out the CIS controll sequences. I don't have RKRM's at hand,
- |> >but there are command sequences like ESC[A, ESC[B, ... to move the
- |> >cursor around. If you have the RKRM's, inspect the console.device part,
- |> >else repost here for a compilation of important sequences.
- |>
- |> I've been working through _Amiga C for Beginners_. It has a list of
- |> escape sequences like \n for new line, \t for tab, etc. One of them
- |> returned the cursor to the first position of the current line. It might
- |> have been \s, but the book is at home instead of beside me. You could
- |> print the count, go to the start of the line, print a series of spaces to
- |> blank the line, go to the start of the line again, print the new count,
- |> etc.
-
- Those (\n \r \t \b) are no escape sequences but control characters.
- Escape sequences begin with an escape character (\033) and are capable
- of performing various, sometimes complex jobs. I also don't have my book
- beside me at the moment, but you should be able to find them in the
- console.device specs, even perhaps in the standard include files (I remember
- having seen some there, but perhaps they were for printer.device ...??).
-
- If you can't get hold of them, i could also compile a list if codes i know
- and mail them to you.
-
- --
-
- - Thomas
-
- ------------------------------------------------------------------------------
- Thomas Ganter, cand.math. A3000 18MB 2.8GB HD - ex AMIGA Developer
- Postweg 3 email: ganterth@mathematik.tu-muenchen.de
- 83209 Prien am Chiemsee FAX : (0) 8051 - 63179
- Bavaria, Germany Phone: (0) 8051 - 61895 & 62054
- ------------------------------------------------------------------------------
- Mathematicians are like Frenchmen: whenever you say something to them,
- they translate it into their own language, and at once it is something
- entirely different. J. W. v. Goethe
-
-